// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 首页 进行中的选题计划  */
export async function conductTopicProject() {
    return request<BaseResponseBean.responsePage<CuesTopicData.TopicPage[]>>(
        '/home/topic/project/conduct',
        {
            method: 'POST',
        },
    );
}

/** 分页 选题  */
export async function activityTopicArticle(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CuesTopicData.TopicPage[]>>(
        '/home/activity/topic',
        {
            method: 'POST',
            data: options || {},
        },
    );
}

/** 分页 选题  */
export async function activityActiveArticle(options?: { [key: string]: any }) {
    return request<BaseResponseBean.responsePage<CuesActiveData.ActivePage[]>>('/home/activity/active', {
        method: 'POST',
        data: options || {},
    });
}

/** 通知栏  */
export async function homeBulletin() {
    return request<BaseResponseBean.responsePage<InstructRecordData.PageVo[]>>('/home/bulletin', {
        method: 'POST',
    });
}

/** 排行榜  */
export async function homeRank(options?: { [key: string]: any }) {
    return request<BaseResponseBean.response<AnalysisData.TrendRank>>('/home/rank', {
        method: 'POST',
        data: options || {},
    });
}

/** 获取节假日列表 */
export async function listFestivalAndHoliday() {
    return request<BaseResponseBean.response<HomeData.FestivalAndHoliday[]>>(
        '/home/festivalAndHoliday/list',
        {
            method: 'POST',
        },
    );
}